<template>
  <div>
    <mt-swipe :auto="4000">
      <mt-swipe-item v-for="item in list" :key="item.id">
        <img class="home" :src="item.img" alt="" v-if="item.img">
        <img class="info" :src="item.src" alt="" v-else-if="item.src">
      </mt-swipe-item>
    </mt-swipe>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  props: ["list"]
};
</script>
<style lang="scss" scoped>
.mint-swipe {
  height: 24vh;
  text-align: center;
  .home {
    width: 100%;
  }
  .info {
    height: 100%;
  }
}
</style>